package com.studentbook.bean;

import java.util.Date;

/**
 * 学生联系人实体类
 */
public class StudentContact {
    private Integer id;        // 主键ID
    private String studentId;  // 学号
    private String name;       // 姓名
    private String grade;      // 年级
    private String contactInfo; // 联系方式
    private Date createTime;   // 创建时间
    private Date updateTime;   // 更新时间
    
    // 无参构造函数
    public StudentContact() {
    }
    
    // 带参构造函数
    public StudentContact(String studentId, String name, String grade, String contactInfo) {
        this.studentId = studentId;
        this.name = name;
        this.grade = grade;
        this.contactInfo = contactInfo;
    }
    
    // Getter和Setter方法
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public String getStudentId() {
        return studentId;
    }
    
    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getGrade() {
        return grade;
    }
    
    public void setGrade(String grade) {
        this.grade = grade;
    }
    
    public String getContactInfo() {
        return contactInfo;
    }
    
    public void setContactInfo(String contactInfo) {
        this.contactInfo = contactInfo;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public Date getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    @Override
    public String toString() {
        return "StudentContact{" +
                "id=" + id +
                ", studentId='" + studentId + '\'' +
                ", name='" + name + '\'' +
                ", grade='" + grade + '\'' +
                ", contactInfo='" + contactInfo + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}